-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[남숙희] Week5 #194
base: part1-남숙희
Are you sure you want to change the base?
The head ref may contain hidden characters: "part1-\uB0A8\uC219\uD76C-week5"
[남숙희] Week5 #194
Conversation
email : userEmail.value, | ||
password : userPw.value, | ||
}; | ||
const p = new Promise(( resolve, reject ) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기서는 굳이 Promise
패턴을 적용하기보다는 async/await
이 맞는것 같네요. 그리고 Promise
사용법을 잘못알고 있는 것 같습니다. resolve
, reject
를 어느시점에 하셔야되는 지와 내부에 어떤 Argment를 적어줘야하는지에 대해서 다시 한번 확인해보세요.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아직 비동기 문법 공부가 많이 부족한 것 같습니다ㅜ 좀 더 공부하겠습니다!
email : userEmail.value, | ||
password : userPw.value, | ||
}; | ||
const p = new Promise(( resolve, reject ) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolve
된 값을 p
변수에 담아서 쓰고 있는데 정작 p
변수를 활용하는 부분은 안보이네요.
차라리 accessApi
api 콜을 위한 코드를 async/await
패턴으로 푸는게 더 나아 보입니다.
@@ -0,0 +1,23 @@ | |||
export const EMAIL_REGEX = /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EMAIL_REGEX
, PW_REGEX
, testUser
, codeitApi
같은 경우 utils/const.js 로 빼주세요.
그리고 나머지 함수들은 utils/func.js 로 관리해주시면 되겠습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네, 알겠습니다!
요구사항
기본
심화
주요 변경사항
스크린샷
멘토에게